﻿CREATE DATABASE [ECLab07]

USE [ECLab07]
GO
/****** Object:  Table [dbo].[Product]    Script Date: 02/15/2012 11:32:53 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Product](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ProductID] [int] NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[Price] [money] NOT NULL,
	[Image] [varchar](255) NULL,
	[Description] [nvarchar](255) NULL,
	[Lang] [char](2) NOT NULL,
 CONSTRAINT [PK_Product] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Default [DF_Product_Price]    Script Date: 02/15/2012 11:32:53 ******/
ALTER TABLE [dbo].[Product] ADD  CONSTRAINT [DF_Product_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_Product_Lang]    Script Date: 02/15/2012 11:32:53 ******/
ALTER TABLE [dbo].[Product] ADD  CONSTRAINT [DF_Product_Lang]  DEFAULT ('vi') FOR [Lang]
GO
